const mongoose = require('../connect');

// 创建数据结构
let booksSchema = new mongoose.Schema({
    name:String,
    time:String,
    price:Number,
    author:String
})

// 创建数据集合
let bookModel = mongoose.model('books',booksSchema);

module.exports = bookModel;

console.log("bookmodel");

